package com.uzai.console.dto.feign.uzaicms;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author liuqi
 * @date 2021年08月26日 14:31
 */
@ApiModel("CMS淘宝商品列表根据类目查询参数")
public class CmsTbGoodsTypeSearchDto {

    @ApiModelProperty("商品类目 默认是0-全部")
    private Integer cid;

    @ApiModelProperty("每页数量")
    private Integer size;

    @ApiModelProperty("分页，用于实现类似分页抓取效果，来源于上次获取后的数据的min_id值，默认为1")
    private String min_id;

    @ApiModelProperty("商品券后价下限")
    private Integer minPrice;

    @ApiModelProperty("商品券后价上限")
    private Integer maxPrice;

    @ApiModelProperty("0-综合排序，2-销量从高到低，4-佣金比例从高到低，5-价格（券后价）从高到低，6-价格（券后价）从低到高")
    private Integer sort;


    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }


    public Integer getSize() {
        return size;
    }

    public void setSize(Integer size) {
        this.size = size;
    }

    public String getMin_id() {
        if(min_id == null){
            min_id = "1";
        }
        return min_id;
    }

    public void setMin_id(String min_id) {
        this.min_id = min_id;
    }


    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getMinPrice() {
        return minPrice;
    }

    public void setMinPrice(Integer minPrice) {
        this.minPrice = minPrice;
    }

    public Integer getMaxPrice() {
        return maxPrice;
    }

    public void setMaxPrice(Integer maxPrice) {
        this.maxPrice = maxPrice;
    }
}
